/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import Database.DBActivity;
import Database.IFDBActivity;
import Domain.Activity;
import java.util.ArrayList;

/**
 *
 * @author Min0
 */
public class CTRLActivity
{
    IFDBActivity CActivity;
    
    public CTRLActivity()
    {
        CActivity = new DBActivity();
    }
    
    public void insertActivity(Activity activity)
    {
        CActivity.insertActivity(activity);
    }
    
    public void insertActivity(String ActivityID, String Activity, int SportFacilityNo, String Date, String Time)
    {
        CActivity.insertActivity(ActivityID, Activity, SportFacilityNo, Date, Time);
    }
    
    public Activity getActivity(String ActivityID)
    {
        return CActivity.getActivity(ActivityID);
    }
    
    public ArrayList<Activity> getActivityList()
    {
        return CActivity.getActivityList();
    }
    
    public void updateActivity(String ActivityID, String Activity, int SportFacilityNo, String Date, String Time)
    {
        CActivity.updateActivity(ActivityID, Activity, SportFacilityNo, Date, Time);
    }
    
    public void updateActivity(String ActivityID, String Activity)
    {
        CActivity.updateActivity(ActivityID, Activity);
    }
    
    public void updateActivity(String ActivityID, int sportFacilityNo)
    {
        CActivity.updateActivity(ActivityID, sportFacilityNo);
    }
    
    public void updateActivityDate(String ActivityID, String Date)
    {
        CActivity.updateActivityDate(ActivityID, Date);
    }
    
    public void updateActivityTime(String ActivityID, String Time)
    {
        CActivity.updateActivityTime(ActivityID, Time);
    }
    
    public void deleteActivity(String ActivityID)
    {
        CActivity.deleteActivity(ActivityID);   
    }
    
    public int getMax()
    {
        return CActivity.getMax();
    }
}
